From 9252b7d6dfc90b529471dc6838874287b2e9fd31 Mon Sep 17 00:00:00 2001 From: tsteven4 Date: Tue, 13 Nov 2018 08:53:34 -0700 Subject: [PATCH] fix clazy detected 'use isEmpty() instead' this is from -Wclazy-isempty-vs-count --- main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cc b/main.cc index e5b76857f..0c56985fa 100644 --- a/main.cc +++ b/main.cc @@ -598,7 +598,7 @@ main(int argc, char* argv[]) } if (qargs.size() > 2) { fatal("Extra arguments on command line\n"); - } else if (qargs.size() && ivecs) { + } else if ((!qargs.isEmpty()) && ivecs) { did_something = 1; /* simulates the default behaviour of waypoints */ if (doing_nothing) { @@ -632,7 +632,7 @@ main(int argc, char* argv[]) cet_convert_deinit(); } - } else if (qargs.size()) { + } else if (!qargs.isEmpty()) { usage(prog_name,0); exit(0); } -- 2.30.2